home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
R
/
RR⁄WK procedure tricks #1
< prev
next >
Wrap
Text File
|
1989-10-21
|
2KB
|
78 lines
RR/WK Procedure Tricks.
Issue #1
Here are some tricks for the RR/WK procedure language.
I have been asked questions on how I was able to get ICONs and
PICTs to work as buttons in I Dream Of Downloading. Well it's
quite simple. In ResEdit, place you PICTs or ICONs in the DITL
resource. Make note of the Item Number of the PICT or ICON. Then
define those Item Numbers as buttons in your SHELL script.
Example: You have four ICONs in a DITL of ID 1000. Use the DATA
statement for a button: DATA 0,0,0,0,0,0,0 for each ICON. In all
DITL's, if the first item is a button, it will become a default
button, (activated when <CR> is tapped>.
SHELLID 1000
ITEMS 4
DATA 0,0,0,0,0,0,0 <-- This will be a highlighted default button
DATA 0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0
ENDSHELL
__________________________________________________________________
How to attach the date at the end of a file name that will be
opened by the procedure:
COPYINTO F$,Filename
(The file that you want to attach a date onto.)
TIMEDATE A$
(A$ now might contain "08/08/89 23:44:09")
LEFT$ B$,5,A$
(B$ now contains "08/08")
CONCAT F$,B$
(Attach date to the filename.)
RECA F$
(Receive the file)
<or>
USEROPENO 1,F$
(Open a file ready to be written to.)
__________________________________________________________________
Next time I'll talk about tricks in ResEdit!
I have just recently become an assistant in the FreeSoft RT to
support the procedure language for RR and WK. I'm am quite familiar
with the language and have written a few RCMDs (RCMD allow you to
write in Pascal or C or any language that makes Code Resources.) If
you have any questions about procedures or RCMDs, I'll be glad to help
but please post your message in the FreeSoft Bulletin Board. That way
everyone can benefit from your question. My e-mail name is B.DANIEL.
Please note that it does not have an S. If you send mail to B.DANIELS,
I won't get it.. someone else has that name.
I am a VAR for AT&T and have quite a bit of experience with UNIX and
communications between UNIX and Mac. I'll be glad to help anyone with
UNIX questions also.
This is issue #1 of a series that I will be posting on ocassion. Please
give me some ideas for future issues.
Bob Daniel
GEnie: B.DANIEL
AT&T Mail: attmail!cikpc!bob